#ifndef __tetris_type_h__
#define __tetris_type_h__

#include <stdint.h>

#define BLOCK_WIDTH 4
#define BLOCK_HEIGHT 4

#define PLAYGROUND_WIDTH 16
#define PLAYGROUND_HEIGHT 16

extern uint8_t SHAPE_L_0[3][3];
extern uint8_t SHAPE_L_1[3][3];
extern uint8_t SHAPE_L_2[3][3];
extern uint8_t SHAPE_L_3[3][3];
extern uint8_t SHAPE_LS[4][3][3];

extern uint8_t BACKGROUD[PLAYGROUND_HEIGHT][PLAYGROUND_WIDTH];

typedef struct Shape
{
    uint8_t x;
    uint8_t y;
    uint8_t shape;
    uint8_t shape_pattern;
} Shape;

#endif
